#body-bg{
    width: 100%;
    height: 100%;
    position: absolute;
    top:0px;
    left:0px;
    overflow: hidden;
    user-select: none;
}
#body-bg > span{
    width: 500000px;
    height: 500000px;
    position: absolute;
    top:50%;
    left: 50%;
    margin: -250000px;
    background:url("./../img/bg.png");
    border: 1px solid red;
    display: block;
}    



/* 主要的显示物体 */
#body-object,
#body-object-svg{
    width: 100%;
    height: 100%;
    position: absolute;
    top:0px;
    left:0px;
    overflow: hidden;
}




/* 当前内容显示的对象类型中的样式 */
.logo-icon-db{background-image: url("/img/mainicon/icon-db.png");}
.logo-icon-field{background-image: url("/img/mainicon/icon-field.png");}
.logo-icon-link {background-image: url("/img/mainicon/icon-link.png");}
.logo-icon-table{background-image: url("/img/mainicon/icon-table.png");}
.logo-icon-user{background-image: url("/img/mainicon/icon-user.png");}
.logo-icon-safety{background-image: url("/img/mainicon/icon-safety.png");}

.btn-icon-fieldadd{background-image: url("/img/mainicon/button-fieldadd.png");}
.btn-icon-jurisdictionadd{background-image: url("/img/mainicon/button-jurisdictionadd.png");}
.btn-icon-link{background-image: url("/img/mainicon/button-link.png");}
.btn-icon-tableadd{background-image: url("/img/mainicon/button-tableadd.png");}
.btn-icon-useradd{background-image: url("/img/mainicon/button-useradd.png");}

.btn-icon-link-left{background-image: url("/img/mainicon/button-link-left.png");position: absolute;left: 0px;top: 50%;margin: -15px;}
.btn-icon-link-right{background-image: url("/img/mainicon/button-link-right.png");position: absolute;right: 0px;top: 50%;margin-top: -15px;}
.btn-icon-link-linkbtn{background-image: url("/img/mainicon/icon-linkbtn.png");position: absolute;left: 0px;top: 50%;margin: -15px;}

.icon-index{background-image: url("/img/mainicon/icon-index.png"); }
.icon-must{background-image: url("/img/mainicon/icon-must.png");}
.icon-search{background-image: url("/img/mainicon/icon-search.png");}

.icon-read{background-image: url("/img/mainicon/icon-read.png");}
.icon-write{background-image: url("/img/mainicon/icon-write.png");}
.icon-add{background-image: url("/img/mainicon/icon-add.png");}
.icon-delete{background-image: url("/img/mainicon/icon-delete.png");}







.foreignObject {
    position: absolute;
    top:0px;
    left:0px;
}
.foreignObject .foreignObject-header,
.foreignObject .foreignObject-items{
    width: calc(100% - (30px*2 + 5px*2 + 20px));
    position: relative;
    margin: 5px auto 0px;
}

.foreignObject .foreignObject-header{
    height: 40px;
    border-bottom: 1px solid #aaa;
    display: flex;
    align-items: center;


}
.foreignObject .foreignObject-items
{
    user-select: none;
    display: flex;
    flex-direction: column;


}
.foreignObject .foreignObject-items .foreignObject-tags
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.foreignObject .foreignObject-items .foreignObject-tag
{
    background: #3077f1;
    color: #FFF;
    padding: 3px 9px;
    border-radius: 30px;
    margin-top: 3px;
    margin-right: 3px;

}
.foreignObject .foreignObject-icon{
    width: 22px;
    height: 22px;
    /* background-color: rgba(0, 0, 0, 0.09); */
    border-radius: 5px;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center center;
}
.foreignObject .foreignObject-name{
    color: rgb(0, 0, 0); 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    /* position:absolute; */
    width:calc(100% - 90px);
    height:12px;
    line-height: 12px;
    font-size: 12px;
    margin-left: 5px;
    font-weight: 600;
    user-select: none;
}




.btn-add{
    width:30px ;
    height:30px ;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #3077f1;
    border: none;
    border-radius: 5px;
    margin-left: 2px;
}
.btn-add:hover{
    background-color: #5a91f0;
}
.btn-add:active{
    background-color: #355ea5;
}

/* 模型内容 */
.space_component_field .foreignObject-name,
.space_component_safety .foreignObject-name{
    width: 100px;
}



.foreignObject-group{
    display: flex;
    flex-direction:row;
    align-items: center;
    /* border: 1px solid red; */
    height: 25px;
    padding-left: 5px;
    padding-right: 5px;
    border-left: 3px solid rgb(191, 191, 191);
}
.foreignObject-group .foreignObject-icon{
    margin:0px 8px;
}
.icon-filter-none{
    filter:grayscale(1) ;
}



.foreignObject-tag
{
    background: #3077f1;
    color: #FFF;
    padding: 3px 9px;
    border-radius: 30px;
    margin-top: 3px;
    margin-right: 3px;

}


.space_component_field .foreignObject-tag
{
    
    max-width: 53px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.space_component_safety .foreignObject-tag
{
    
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 遮罩层内容 */
#body-shade{
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0px;
    left:0px;
    pointer-events: none;
    background-image: radial-gradient(#00000000,#00000000 , #00000040);
}



 


